const { createMoment } = require('../service/comment.service')
class CommentController {
  async createComment(ctx, next) {
    const { name, id } = ctx.user
    const { moment_id, content } = ctx.request.body
    console.log(content, moment_id, id)
    const results = await createMoment(content, moment_id, id)
    ctx.body = results
  }
}
module.exports = new CommentController()
